//
// Created by 123 on 2024/12/31.
//
#include "iostream"
using namespace std;

class Phone{
public:
    string phoneName;
    Phone(){
        cout << "Phone constructor" <<endl;
    }
    Phone(string name){
        phoneName = name;
    }
    ~Phone(){
        cout << "Phone destory" << endl;
    }
};

class Human{
public:
    string humanName;
    Phone humanPhone;

    Human(string name,string phone):humanName(name),humanPhone(phone){
        cout << "human param constructor" << endl;
    };
    ~Human(){
        cout << "human destory" << endl;
    }

    void playerGame(){
        cout << "human==" << humanName << " phone==" << humanPhone.phoneName << endl;
    }
};

void test01(){
    Human h("zhangsan","apple");
    h.playerGame();
}

int main063(){
    test01();

    return 0;
}